package cn.edu.sjtu.literature.web.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.edu.sjtu.literature.web.view.View;

public class LogoutController extends AbstractController {

	@Override
	public View doAction(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		req.getSession().invalidate();
		return getRedirectView(req, resp, "loginForm");
	}

}
